﻿using System;
using System.Collections.Generic;
using System.Text;

namespace OnlineCourse.Model.Entity
{
    /// <summary>
    /// 领取券记录
    /// </summary>
    public class CouponsRecord
    {
        public CouponsRecord() {
            CreatedDate = DateTime.Now;
            UpdatedDate = DateTime.Now;
        }
        public Guid Id { get; set; }
        /// <summary>
        /// 所属券类型
        /// </summary>
        public Guid CouponId { get; set; }
        public Coupon Coupon { get; set; }
        /// <summary>
        /// 所属用户
        /// </summary>
        public Guid UserId { get; set; }
        public User User { get; set; }
        /// <summary>
        /// 优惠券来源（推荐赠送、其他渠道领取）-
        /// </summary>/
        public string Source { get; set; }
 
        public int State { get; set; }//1正常持有状态，0已消费掉

        public DateTime CreatedDate { get; set; }
        public DateTime UpdatedDate { get; set; }
    }
}
